package com.ruoyi.xzs.mapper;

import com.ruoyi.xzs.domain.QuestionAnswer;

import java.util.List;

/**
 * questionAnswerMapper接口
 * 
 * @author li
 * @date 2023-03-09
 */
public interface QuestionAnswerMapper 
{
    /**
     * 查询questionAnswer
     * 
     * @param id questionAnswer主键
     * @return questionAnswer
     */
    public QuestionAnswer selectQuestionAnswerById(Long id);

    /**
     * 根据题目id查询答案
     * @param qId
     * @return
     */
    public QuestionAnswer selectQuestionAnswerByQuestionId(Long qId);

    /**
     * 查询questionAnswer列表
     * 
     * @param questionAnswer questionAnswer
     * @return questionAnswer集合
     */
    public List<QuestionAnswer> selectQuestionAnswerList(QuestionAnswer questionAnswer);

    /**
     * 新增questionAnswer
     * 
     * @param questionAnswer questionAnswer
     * @return 结果
     */
    public int insertQuestionAnswer(QuestionAnswer questionAnswer);

    /**
     * 修改questionAnswer
     * 
     * @param questionAnswer questionAnswer
     * @return 结果
     */
    public int updateQuestionAnswer(QuestionAnswer questionAnswer);

    /**
     * 删除questionAnswer
     * 
     * @param id questionAnswer主键
     * @return 结果
     */
    public int deleteQuestionAnswerById(Long id);

    /**
     * 批量删除questionAnswer
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteQuestionAnswerByIds(Long[] ids);
}
